﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Traceability.Infrerture.Migrations
{
    public partial class _88 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "Company_Addr",
                table: "Company_Models",
                newName: "Company_Xian");

            migrationBuilder.AddColumn<string>(
                name: "Company_Sheng",
                table: "Company_Models",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<string>(
                name: "Company_Shi",
                table: "Company_Models",
                type: "nvarchar(max)",
                nullable: false,
                defaultValue: "");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Company_Sheng",
                table: "Company_Models");

            migrationBuilder.DropColumn(
                name: "Company_Shi",
                table: "Company_Models");

            migrationBuilder.RenameColumn(
                name: "Company_Xian",
                table: "Company_Models",
                newName: "Company_Addr");
        }
    }
}
